/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package kasusyudisium;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import javax.swing.JMenuBar;

/**
 *
 * @author sony
 */
public class FrameUtamaMahasiswa extends JFrame {
 private JMenuBar menubar;
    private JMenu mahasiswa;
    private JMenuItem daftaryudisium, exit;
//    private JLabel label;

    public FrameUtamaMahasiswa() {

        this.setSize(800, 700);
        this.setLayout(null);
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        this.setTitle("Panel Daftar Yudisium");
//      this.setResizable(true);
        menubar = new JMenuBar();
        this.setJMenuBar(menubar);

        mahasiswa = new JMenu("Mahasiswa");
        menubar.add(mahasiswa);

        daftaryudisium = new JMenuItem("Pendaftaran Yudisium");
        mahasiswa.add(daftaryudisium);
        daftaryudisium.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                throw new UnsupportedOperationException("Not supported yet.");
            }
        });

        exit = new JMenuItem("Exit");
        mahasiswa.add(exit);

        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        exit.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
//                quitAction();
            }
//
//            private void quitAction() {
//                System.exit(0);}

        });

    }

    public static void main(String[] args) {
        FrameUtamaMahasiswa frame = new FrameUtamaMahasiswa();
        frame.setSize(700, 600);
        frame.setVisible(true);
    }
}
//    private JMenuBar menubar;
//    private JMenu mhs;
//    private JMenuItem TestPanelDaftarYudisium;
//
//    public FrameUtamaMahasiswa () {
//        menubar = new JMenuBar();
//        mhs = new JMenu("Mahasiswa");
//        TestPanelDaftarYudisium = new JMenuItem("Panel Daftar Yudisium");
//
//        setJMenuBar(menubar);
//        menubar.add(mhs);
//        mhs.add(TestPanelDaftarYudisium);
//        TestPanelDaftarYudisium.addActionListener(null);
//
//        setTitle("Pendaftaran Yudisium Mahasiswa");
//    }
//
//    public static void main(String[] args) {
//        FrameUtamaMahasiswa frame = new FrameUtamaMahasiswa();
//        frame.setSize(700, 600);
//        frame.setVisible(true);
//    }
//}